Determines whether the current value is empty.

Namespace: Keystone.Polaris
Assembly: Keystone (in Keystone.dll)

public static bool IsEmpty<TBaseValue>( 
this TBaseValue valueOf
Func<TBaseValue, bool> usingComparison = null 
)
This language is not supported or no code example is available.

Type Parameters

TBaseValue

The type of the current value.

Parameters

valueOf

Type: TBaseValue

The current value.

usingComparison

Type: Func<TBaseValue, bool>

The optional comparison function to test the current value for emptiness. If none is given and the current value is a string, a comparison with an empty string is used. On the other hand if none is given and the current value is an enumeration, a test to verify that the enumeration has no items is used.

Return Value

true if the given value is empty or null for general reference types; otherwise, false.

Windows, Windows Server, OS X, macOS, iOS, tvOS, Android, Linux, AWS, Azure

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 4.6

Others

Xamarin, Mono